package com.haizhi.storage;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 文件checksum记录
 */
@Entity
@Table(name = "DownloadInfo", indexes = {@Index(name = "downFileName", columnList = "fileName")})
public class DownloadInfo extends DbInfo {

    public DownloadInfo() {
    }

    public DownloadInfo(String fileName, String fileBase64, String md5) {
        super(fileName, fileBase64, md5);
    }


    @Override
    public String toString() {
        return "DownloadInfo{" +
                "fileName='" + this.getFileName() + '\'' +
                ", fileBase64='" + this.getFileBase64() + '\'' +
                ", md5='" + this.getMd5() + '\'' +
                '}';
    }
}
